home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / Apple Script / OSAX / App Menu OSAX / About App Menu Additions next >
Text File  |  1993-07-26  |  1KB  |  13 lines

  1. The file “Application Menu” contains some useful AppleScript commands that let you invoke the functions of the top three items in the System 7 application menu from a script. “Hide front application” hides the frontmost application (and brings another application to the front); “Hide other applications” hides all but the frontmost application; and “Show all applications” makes all application windows visible again.
  2.  
  3. To use this addition, put it in your Scripting Additions folder (inside your Extensions folder in the System Folder).
  4.  
  5. To show the usefulness of these commands, I’ve enclosed a sample “droplet” application, “Launch & Hide Others”. Drag an AppleEvent-aware application on top of this, and it should launch (if it’s not already running), come to the front, and all other running applications will be hidden. You can examine and modify the script of this with the Script Editor, if you wish.
  6.  
  7. Lawrence D’Oliveiro
  8. Computer Services Dept
  9. University of Waikato
  10. Hamilton
  11. New Zealand
  12. Internet: ldo@waikato.ac.nz
  13. 1993 July 26.